﻿/// <reference path="../../sage/sage.util.js" />
/// <reference path="../painters/fourkill.painter.ZZ.singletons.js" />

var CloudObject = GameObject.extend({
    initialize: function initialize(treeType) {
        GameObject.initialize.call(this);
        var c = 255 - util.random(0, 20);
        this.color = "rgba(" + c + ", " + c + ", " + c + ", " + (Math.random() * 0.44 + 0.48) + ")";
    },
    tick: function tick() {
        if (this.speed != 0) this.move(this.speed);
    },
    getPainter: function getPainter() { return Painters.Cloud; }
});